package aom.ju.ss.view.user.set

import androidx.core.widget.addTextChangedListener
import aom.ju.ss.R
import aom.ju.ss.databinding.UserInfoLayoutBinding
import aom.ju.ss.mode.UserInfo
import aom.ju.ss.view.base.BaseActivity

class UserInfoActivity : BaseActivity() {
    private lateinit var binding: UserInfoLayoutBinding
    override fun init() {
        binding = viewBinding as UserInfoLayoutBinding
        binding.info = UserInfo.userInfo
        binding.edJj.addTextChangedListener {
            it?.let {
                binding.edNum.text = it.toString().length.toString() + "/30"

            }
        }

    }

    override val lay: Int = R.layout.user_info_layout
}